package com.bujunjie.study.realtime.common.enums;

import lombok.Getter;

/**
 * <p>flink CDC 数据类型</p>
 *
 * @author bu.junjie
 * @version 1.0.0
 * @createTime 2025/9/12 16:10
 */
@Getter
public enum FlinkOpEnum {

    /**
     * 创建
     */
    C("c", "Create"),
    /**
     * 读取
     */
    R("r", "Read"),
    /**
     * 更新
     */
    U("u", "Update"),
    /**
     * 删除
     */
    D("d", "Delete"),
    ;

    /**
     * 操作类型
     */
    private final String op;

    /**
     * 描述
     */
    private final String desc;

    FlinkOpEnum(String op, String desc) {
        this.op = op;
        this.desc = desc;
    }
}
